package com.ruoyi.mall.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品SKU对象 t_product_skus
 *
 * @author ruoyi
 * @date 2025-08-13
 */
public class ProductSkus extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品SKUID
     */
    private Long skuId;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long productId;

    /**
     * SKU编码
     */
    @Excel(name = "SKU编码")
    private String skuCode;

    /**
     * 规格图片
     */
    @Excel(name = "规格图片")
    private String img;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long stock;

    /**
     * 规格值ID1
     */
    @Excel(name = "规格值ID1")
    private Long valueid;

    /**
     * 规格值ID2
     */
    @Excel(name = "规格值ID2")
    private Long valueids;

    /**
     * 漫券支付数量
     */
    @Excel(name = "漫券支付数量")
    private BigDecimal ticketNum;

    private Integer specValue;
    private Integer specValue1;
    private String specValueName;

    private String specValue1Name;

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg() {
        return img;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public Long getStock() {
        return stock;
    }

    public void setValueid(Long valueid) {
        this.valueid = valueid;
    }

    public Long getValueid() {
        return valueid;
    }

    public void setValueids(Long valueids) {
        this.valueids = valueids;
    }

    public Long getValueids() {
        return valueids;
    }

    public void setTicketNum(BigDecimal ticketNum) {
        this.ticketNum = ticketNum;
    }

    public BigDecimal getTicketNum() {
        return ticketNum;
    }


    public Integer getSpecValue() {
        return specValue;
    }

    public void setSpecValue(Integer specValue) {
        this.specValue = specValue;
    }

    public Integer getSpecValue1() {
        return specValue1;
    }

    public void setSpecValue1(Integer specValue1) {
        this.specValue1 = specValue1;
    }

    public String getSpecValueName() {
        return specValueName;
    }

    public void setSpecValueName(String specValueName) {
        this.specValueName = specValueName;
    }

    public String getSpecValue1Name() {
        return specValue1Name;
    }

    public void setSpecValue1Name(String specValue1Name) {
        this.specValue1Name = specValue1Name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("skuId", getSkuId())
                .append("productId", getProductId())
                .append("skuCode", getSkuCode())
                .append("img", getImg())
                .append("price", getPrice())
                .append("stock", getStock())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("valueid", getValueid())
                .append("valueids", getValueids())
                .append("ticketNum", getTicketNum())
                .toString();
    }
}
